package com.ctyon.common.container;

import java.util.HashMap;
import java.util.Map;

/**
 * CreateDate：19-7-2 on 下午4:18
 * Describe:
 * Coder: lee
 */
public class BeanContainer {

    private static Map<String, Object> objectMap;

    public BeanContainer() {
        objectMap = new HashMap<>();
    }

    public void put(String className, Object o){
        objectMap.put(className, o);
    }

    public void remove(String className){
        objectMap.remove(className);
    }

    public Object get(String className){
        return objectMap.get(className);
    }

    public void clear(){
        objectMap.clear();
    }

}
